<script type="text/javascript">
    $(function () {
        $("#ljwh_detail_table .previewImg").lightbox({
            fitToScreen:true,
            loopImages:true,
            imageClickClose:false,
            disableNavbarLinks:true
        });
    })
</script>
<div id="ljwh_tabs" detail="true" class="easyui-tabs" data-options="fit:true,border:false">
    <input type="hidden" id="ljwh_detail_id" value="${(lj.id)!}"/>

    <div title="上下游关系信息">
        <table id="ljwh_detail_table" style="width: 100%" class="tb tab-t t-bor">
            <tr>
                <th style="font-size:14px;font-weight:bold">全称：</th>
                <td colspan="5" style="font-size:14px;font-weight:bold">${(lj.mc)!}</td>
            </tr>
            <tr>
                <th>简称：</th>
                <td colspan="5">${(lj.ljjc)!}</td>
            </tr>
        <#if (lj.lx)?exists && (lj.lx) == 7>
            <col width="110px"/>
            <col width=""/>
            <col width="110px"/>
            <col width=""/>
            <col width="110px"/>
            <col width=""/>
            <tr>
                <th>类型：</th>
                <td colspan="2">上下游关系维护</td>
                <th>运营商：</th>
                <td colspan="2">${(lj.jyjg.jc)!}</td>
            </tr>
            <tr>
                <th>上游名称：</th>
                <td colspan="2">
                    <#if (lj.sy)?exists>
                        <#list lj.sy as sy>
                        ${(sy.jc)!}<#if sy_has_next>,</#if>
                        </#list>
                    </#if>
                </td>
                <th>下游名称：</th>
                <td colspan="2">
                    <#if (lj.xy)?exists>
                        <#list lj.xy as xy>
                        ${(xy.jc)!}<#if xy_has_next>,</#if>
                        </#list>
                    </#if>
                </td>
            </tr>
            <#--<tr>-->
                <#--<th>计算依据：</th>-->
                <#--<td>${(lj.jsfs.z)!}</td>-->
                <#--<th>客户回款周期：</th>-->
                <#--<td>${(lj.hkq)!}</td>-->
                <#--&lt;#&ndash;<th>综合服务费：</th>&ndash;&gt;-->
                <#--&lt;#&ndash;<td><#if (lj.ll)??>${lj.ll}</#if>%</td>&ndash;&gt;-->
            <#--</tr>-->
            <tr>
                <th>销售合同模板：</th>
                <td colspan="5">${(lj.xshtmb.mc)!}</td>
            </tr>
        </#if>
            <tr>
                <th>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件：</th>
                <td class="lian" colspan="5">
                <#if lj??&&(lj.fjList)??>
                    <#list lj.fjList as fj>
                        <span class="uploadify-queue-item fileName" style="height:65px;text-align: center;">
                                <a href="${base}/base/fj/downLoadFj?fjId=${fj.id}" class="previewImg"
                                   rel="previewImg_${(lj.id)!}" title="${(fj.ccmc)!}"
                                   style="display:block;margin: 0 auto;">
                                    <img src="${base}/base/fj/downLoadFj?fjId=${fj.id}" width="50" height="50"/>
                                </a>
                                <a href="javascript:void(0);"
                                   onclick="window.location.href='${base}/base/fj/downLoadFj?fjId=${fj.id}'">下载
                                </a>
                            </span>
                    </#list>
                </#if>
                </td>
            </tr>
            <tr>
                <th>制&nbsp;单&nbsp;&nbsp;人：</th>
                <td colspan="2">${(lj.createUser.xm)!}</td>
                <th>制单时间：</th>
                <td colspan="2">${(lj.dateCreated?datetime)!}</td>
            </tr>
        </table>
    </div>
</div>